package com.example.websocketdemo;

import org.springframework.web.bind.annotation.*;

/**
 * @author HXB
 * @Title:
 * @Package
 * @Description:
 * @date 2020-03-2117:32
 */
@RestController
public class WebSocketController {


    @RequestMapping(value = "/test",method = RequestMethod.GET)
    public String test(@RequestParam("code") String code){
        return websocket.sendMessage(code,"10086");
    }

}
